<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<!--
			number包括整数和小数
		-->
		<script type="text/javascript">
			var num1 = 10
			var num2 = 10.0
			alert(typeof num2)
			alert(num1==num2)
			
			//浮点数不精确
			//0.5
			//0.30000000000000004
			console.log(1-0.5)
			console.log(1-0.7)
			console.log(1-0.1)
		</script>
	</body>
</html>
